cmake_minimum_required(VERSION 3.8)
project(exec_proc_3)
execute_process(COMMAND ls RESULT_VARIABLE var1)
execute_process(COMMAND ls - RESULT_VARIABLE var2)
message(STATUS "var1 = ${var1}")
message(STATUS "var2 = ${var2}")
execute_process(COMMAND ls COMMAND ls - RESULTS_VARIABLE var)
list(LENGTH var varLen)
message(STATUS "varLen = ${varLen}")
message(STATUS "var = ${var}")
